package com.buddy.rpc.sdk.register;

import java.util.HashMap;
import java.util.Map;

/**
 * @author buddy
 * @date 2021/12/21
 */
public class ServiceRegister {


    private static Map<String, Class> LOCAL_REGISTER = new HashMap<>();

    public static void register(String interfaceName, Class interfaceImpl){
        LOCAL_REGISTER.put(interfaceName, interfaceImpl);
    }

    public static Class get(String interfaceName){
        return LOCAL_REGISTER.get(interfaceName);
    }
}
